<template>
  <RouterView></RouterView>
  <!-- 只有非登录页时，才显示底部导航栏 -->
  <HomeBottom v-if="route.name !== 'login' && route.name !== 'register'"></HomeBottom>
</template>

<script setup>
import HomeBottom from './navigation/HomeBottom.vue';
import { useRoute } from 'vue-router'; // 引入useRoute

const route = useRoute(); // 获取当前路由信息
</script>

<style scoped></style>